﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using OpenThesis.Rest;
using System.IO;

namespace OpenThesis.Host.Console
{
	class Program
	{
		static void Main(string[] args)
		{
			var baseUri = "http://localhost:8080/";
			var extensionsPath = ".";

			var appHost = new AppHost(extensionsPath);
			appHost.Init();
			appHost.Start(baseUri);

			System.Console.WriteLine("OpenThesis Server is listening on " + baseUri);
			System.Console.WriteLine("Press any key to stop and exit");
			System.Console.ReadKey();
		}
	}
}
